package com.xiyu.service.enums.material.info;

import com.xiyu.service.enums.fee.recharge.FeeRechargeDetailStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 物资供应商性质
*/
@Getter
@AllArgsConstructor
public enum MaterialSupplierPropertyEnum implements IntArrayValuable {

    /**
    * 代理商
    */
    AGENT(1, "代理商"),
    /**
    * 批发商
    */
    WHOLESALER(2, "批发商"),
    /**
    * 制造商
    */
    MANUFACTURER(3, "制造商");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MaterialSupplierPropertyEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MaterialSupplierPropertyEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
